package com.astrocsr.domain.bean;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class PDFData {
	public String formatMoney(BigDecimal amount, String symbol){
//		if(amount.compareTo(BigDecimal.ZERO)<0){
//			return String.format("(%s%s)", symbol,amount.negate());
//		} else {
			return String.format("%s%,.2f", symbol,amount);
//		}
		
	}
	private List<PDFStatement> statements = new ArrayList<PDFStatement>();

	private String custName;
	private String fullAccNo;
	private String statementDate;
	private String dueDate;
	
	private BigDecimal amountDue = BigDecimal.ZERO;
	private BigDecimal currentCharge = BigDecimal.ZERO;
	private BigDecimal previousBalance = BigDecimal.ZERO;
	private BigDecimal paymentAdjustment = BigDecimal.ZERO;
	private BigDecimal unpaid = BigDecimal.ZERO;
	private BigDecimal totalAmountDue = BigDecimal.ZERO;
	private BigDecimal dueAmnt = BigDecimal.ZERO;
	private String symbol;
	
	private BigDecimal totalGST = BigDecimal.ZERO;
	private BigDecimal totalAmountCharge = BigDecimal.ZERO;
	private BigDecimal totalAfterGST = BigDecimal.ZERO;
	
	public BigDecimal getAmountDue() {
		return amountDue;
	}
	public void setAmountDue(BigDecimal acmountDue) {
		this.amountDue = acmountDue;
	}
	public BigDecimal getCurrentCharge() {
		return currentCharge;
	}
	public void setCurrentCharge(BigDecimal currentCharge) {
		this.currentCharge = currentCharge;
	}
	public BigDecimal getPreviousBalance() {
		return previousBalance;
	}
	public void setPreviousBalance(BigDecimal previousBalance) {
		this.previousBalance = previousBalance;
	}
	public BigDecimal getPaymentAdjustment() {
		return paymentAdjustment;
	}
	public void setPaymentAdjustment(BigDecimal paymentAdjustment) {
		this.paymentAdjustment = paymentAdjustment;
	}
	public List<PDFStatement> getStatements() {
		return statements;
	}
	public void setStatements(List<PDFStatement> statements) {
		this.statements = statements;
	}
	public String getCustName() {
		return custName;
	}
	public void setCustName(String custName) {
		this.custName = custName;
	}
	public String getFullAccNo() {
		return fullAccNo;
	}
	public void setFullAccNo(String fullAccNo) {
		this.fullAccNo = fullAccNo;
	}
	public BigDecimal getUnpaid() {
		return unpaid;
	}
	public void setUnpaid(BigDecimal unpaid) {
		this.unpaid = unpaid;
	}
	public void setStatementDate(String statementDate) {
		this.statementDate = statementDate;
	}
	public void setDueDate(String dueDate) {
		this.dueDate = dueDate;
	}
	public String getStatementDate() {
		return statementDate;
	}
	public String getDueDate() {
		return dueDate;
	}
	public BigDecimal getTotalAmountDue() {
		return totalAmountDue;
	}
	public void setTotalAmountDue(BigDecimal totalAmountDue) {
		this.totalAmountDue = totalAmountDue;
	}
	public BigDecimal getTotalGST() {
		return totalGST;
	}
	public void setTotalGST(BigDecimal totalGST) {
		this.totalGST = totalGST;
	}
	public BigDecimal getTotalAmountCharge() {
		return totalAmountCharge;
	}
	public void setTotalAmountCharge(BigDecimal totalAmountCharge) {
		this.totalAmountCharge = totalAmountCharge;
	}
	public BigDecimal getTotalAfterGST() {
		return totalAfterGST;
	}
	public void setTotalAfterGST(BigDecimal totalAfterGST) {
		this.totalAfterGST = totalAfterGST;
	}
	public String getSymbol() {
		return symbol;
	}
	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}
	public BigDecimal getDueAmnt() {
		return dueAmnt;
	}
	public void setDueAmnt(BigDecimal dueAmnt) {
		this.dueAmnt = dueAmnt;
	}
}
